package models

type Order struct {
	Base
	UserId  uint   `json:"user_id"`
	OrderSn string `json:"order_sn"`
	Timestamp
}

func (*Order) TableName() string {
	return "orders"
}

type OrderDetail struct {
	Order
	User User `json:"user"`
}

type OrderList struct {
	Order
	User User `json:"user"`
}
